import config from "../config/config.js"
function request(params){
	return new Promise((resolve,reject)=>{
		uni.request({
			url:config.BASE_URL+params.url,
			method:params.method??'GET',
			data:params.data,
			success(res) {
				resolve(res.data)
			}
		})
	})
}
export default request